package com.hunk.core.dao;

import java.io.Serializable;
import java.sql.SQLException;

/**增删改查
 * Description :<br>
 * 
 * @author HunkDeng
 * @since 2013-4-13
 * @param <PK>
 * @param <T>
 */
public interface CrudDao<PK, T extends Serializable> {
	
    public T save(final T entity) throws SQLException;

    public void delete(final String ID) throws SQLException;

    public T get(final PK ID) throws SQLException;
    
    public T update(final T entity) throws SQLException;
}
